package com.dragon.modules.yuegou.mapper.coupon;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dragon.modules.yuegou.entity.coupon.CouponTemplateStockEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 优惠券模板库存 Mapper接口
 *
 * @author pbuilder generated
 * @date 2020-06-30 17:39:39
 * @version 2.0
 */
@Component("coupCouponTemplateStockMapper")
public interface CouponTemplateStockMapper extends BaseMapper<CouponTemplateStockEntity> {

	int reduceStock(@Param("couponTemplateId") String couponTemplateId, @Param("quantity") Integer quantity);

	int plusStock(@Param("couponTemplateId") String couponTemplateId, @Param("quantity") Integer quantity);

}
